package com.ruoyi.swap.realtime.orderbook.mapper;

import java.util.List;
import com.ruoyi.swap.realtime.orderbook.domain.SwapOrderbookRealtimeData;
import com.ruoyi.swap.realtime.orderbook.domain.VO.SwapOrderbookRealtimeDataVO;
import org.apache.ibatis.annotations.Param;

/**
 * 实时订单簿Mapper接口
 * 
 * @author saumell
 * @date 2024-08-03
 */
public interface SwapOrderbookRealtimeDataMapper 
{
    /**
     * 查询实时订单簿
     * 
     * @param id 实时订单簿主键
     * @return 实时订单簿
     */
    public SwapOrderbookRealtimeDataVO selectSwapOrderbookRealtimeDataById(Integer id);

    /**
     * 查询实时订单簿列表
     * 
     * @param swapOrderbookRealtimeData 实时订单簿
     * @return 实时订单簿集合
     */
    public List<SwapOrderbookRealtimeDataVO> selectSwapOrderbookRealtimeDataList(SwapOrderbookRealtimeDataVO swapOrderbookRealtimeData);

    /**
     * 新增实时订单簿
     * 
     * @param swapOrderbookRealtimeData 实时订单簿
     * @return 结果
     */
    public int insertSwapOrderbookRealtimeData(SwapOrderbookRealtimeData swapOrderbookRealtimeData);

    /**
     * 修改实时订单簿
     * 
     * @param swapOrderbookRealtimeData 实时订单簿
     * @return 结果
     */
    public int updateSwapOrderbookRealtimeData(SwapOrderbookRealtimeData swapOrderbookRealtimeData);

    /**
     * 删除实时订单簿
     * 
     * @param id 实时订单簿主键
     * @return 结果
     */
    public int deleteSwapOrderbookRealtimeDataById(Integer id);

    /**
     * 批量删除实时订单簿
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteSwapOrderbookRealtimeDataByIds(Integer[] ids);

    List<SwapOrderbookRealtimeDataVO> selectSwapAllData();

    Integer queryCurryNumber(@Param("currencyPair")String currencyPair);
}
